<h2>这是一个demo</h2>
<table>
  <tr>
    <th>书名</th>
    <th>作者</th>
    <th>价格</th>
  </tr>
  <ng-container *ngFor="let item of list">
    <tr *ngIf="item.bookPrice>200">
      <td>{{item.bookName}}</td>
      <td>{{item.bookAuthor}}</td>
      <td>{{item.bookPrice}}</td>
    </tr>
  </ng-container>
</table>

<ul [ngSwitch]="str">
  <li *ngSwitchCase="'a'">A</li>
  <li *ngSwitchCase="'b'">B</li>
  <li *ngSwitchCase="'c'">C</li>
  <li *ngSwitchCase="'d'">D</li>
  <li *ngSwitchDefault>请输入A,B,C,D其中一个</li>
</ul>

<h1 *ngIf="isMember">这是一段2分钟的广告</h1>